from django.db import models

class Votes(models.Model):
    """投票数据模型类"""
    voteID = models.IntegerField(default=0,  verbose_name='投票者ID')
    voteByID = models.IntegerField(default=0, verbose_name='被投票者ID')
    Ip = models.CharField(max_length=255, verbose_name='投票端IP',null=True)
    create_time = models.DateTimeField(auto_now_add=True, verbose_name="投票时间", null=True)

    class Meta:
        db_table = 'tb_vote'
        verbose_name = '投票数据记录表'
        verbose_name_plural = verbose_name